import { get,post } from "./http";

//会员注册
export let Register = (params) => post("/api/register",params)
//会员登录
export let Login = (params) => post("/api/login",params)
//新人专享
export let Getnew = () => get("api/getnew")
//万人团
export let Getgroupon = () => get("api/getgroupon")
//倒计时
export let Getcountdown = () => get("api/getcountdown")
//秒杀
export let Getseckill = () => get("api/getseckill")
//商品信息首页
export let Getindexgoods = () => get("api/getindexgoods")
//商品分类
export let Getcate = () => get("api/getcate")
//分类商品
export let Getgoods = (params) => get("api/getgoods",params)
//优惠券
export let Getcoupon = () => get("api/getcoupon")
//购物车列表
export let Cartlist = (params) => get("api/cartlist",params)
//购物车添加
export let Cartadd = (params) => post("api/cartadd",params)
//购物车删除
export let Cartdelete = (params) => post("api/cartdelete",params)
//轮播图信息
export let Cartbanner = () => get("api/cartbanner")
//购物车修改
export let Cartedit = (params) => post("api/cartedit",params)
//商品详情
export let Getgoodsinfo = (params) => get("api/getgoodsinfo",params)